import { getHomeCategory } from '@/api/home'
export default {
  namespaced: true,
  state: () => {
    return {
      list: []
    }
  },
  mutations: {
    setList (state, list) {
      state.list = list
    }
  },
  actions: {
    async findList (store) {
      const { result } = await getHomeCategory()
      store.commit('setList', result)
    }
  }
}
